package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.vo.OrderItemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("fengmall-cart")
public interface CartFeignService {
    @GetMapping("/{userId}/userCartItems")
    List<OrderItemVo> getUserCartItems(@PathVariable("userId")Long userId);

    @PostMapping("/deleteOrderCartItem")
    R deleteOrderCartItem(@RequestBody List<Long> skuId);
}
